home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
varia
/
egebook.lha
/
ege.book
/
5
/
TeachingAssistant.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-07
|
573b
|
29 lines
#include <iostream.h>
#include "Collection.h"
#include "TeachingAssistant.h"
Collection* TeachingAssistant::All = new Collection;
Example* TeachingAssistant::alike(String &name) {
return(new TeachingAssistant(name));
};
void TeachingAssistant::maintain() {
String selection;
cout << "as teacher (t) or student (s): ";
cin >> selection;
if (selection.contains("t"))
Teacher::maintain();
else
Student::maintain();
}
bool TeachingAssistant::add(Example *c) {
if (Teacher::add(c)) {
salary += 1000;
return TRUE;
} else
return FALSE;
};